package com.mvp.lt.airlineview.data.source.helper;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;

import com.mvp.lt.airlineview.data.source.db.DaoMaster;

import org.greenrobot.greendao.database.Database;


/**
 * $activityName
 *
 * @author LiuTao
 * @date 2019/4/1/001
 */


@SuppressWarnings("ALL")
public class PwjOpenHelper extends DaoMaster.OpenHelper {


    public PwjOpenHelper(Context context, String name, SQLiteDatabase.CursorFactory factory) {
        super(context, name, factory);
    }

    @Override
    public void onUpgrade(Database db, int oldVersion, int newVersion) {
        MigrationHelper.migrate(db, new MigrationHelper.ReCreateAllTableListener() {
            @Override
            public void onCreateAllTables(Database db, boolean ifNotExists) {

            }

            @Override
            public void onDropAllTables(Database db, boolean ifExists) {

            }
        });
    }
}
